package com.forever7776.life.core.common.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * 动弹状态
 * </p>
 *
 * @author kz
 * @date 2018-03-16
 */
public class TweetStatusEnum {

    public final static Map<Integer, String> STATUS_MAP = new HashMap<>();

    public enum STATUS {
        FROZEN(-1, "系统隐藏"),
        NORMAL(0, "手动隐藏"),
        LOCK(1, "显示");
        private Integer code;
        private String desc;

        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        STATUS(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }
    }

    static {
        for (STATUS t : STATUS.values()) {
            STATUS_MAP.put(t.getCode(), t.getDesc());
        }
    }
}
